package cn.com.b2office.dao;

import java.util.List;

import cn.com.b2office.domain.Article;
import cn.com.b2office.domain.ArticleCategory;

public interface ArticleDao {

	/* Article */
	List<Article> listArticle(int articleTypeId, int firstResult, int maxResults);
	
	List<Article> listAllArticle(int categoryId);

	int createArticle(Article article);

	Article getArticle(int articleId);

	/**
	 * 获取后面指定数目的文章
	 * 
	 * @param count
	 * @return
	 */
	List<Article> getNextArticles(int curArticleId,int count);

	void updateArticle(Article article);

	void removeArticle(Article article);

	void removeArticle(int articleId);

	/** ������ŵĵ�� */
	void addArticleHits(int articleId, int hits);

	/* Article ���� */

	ArticleCategory getArticleCategory(int id);
	
	List<ArticleCategory> listAllCategory(List<Integer> categoryIdList);

}
